package com.crm.model.entity.cluePoolManager;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ClueReturnExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClueReturnExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andClueReturnIdIsNull() {
            addCriterion("clue_return_id is null");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdIsNotNull() {
            addCriterion("clue_return_id is not null");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdEqualTo(String value) {
            addCriterion("clue_return_id =", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdNotEqualTo(String value) {
            addCriterion("clue_return_id <>", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdGreaterThan(String value) {
            addCriterion("clue_return_id >", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_return_id >=", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdLessThan(String value) {
            addCriterion("clue_return_id <", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdLessThanOrEqualTo(String value) {
            addCriterion("clue_return_id <=", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdLike(String value) {
            addCriterion("clue_return_id like", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdNotLike(String value) {
            addCriterion("clue_return_id not like", value, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdIn(List<String> values) {
            addCriterion("clue_return_id in", values, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdNotIn(List<String> values) {
            addCriterion("clue_return_id not in", values, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdBetween(String value1, String value2) {
            addCriterion("clue_return_id between", value1, value2, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andClueReturnIdNotBetween(String value1, String value2) {
            addCriterion("clue_return_id not between", value1, value2, "clueReturnId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdIsNull() {
            addCriterion("return_people_id is null");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdIsNotNull() {
            addCriterion("return_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdEqualTo(String value) {
            addCriterion("return_people_id =", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotEqualTo(String value) {
            addCriterion("return_people_id <>", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdGreaterThan(String value) {
            addCriterion("return_people_id >", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("return_people_id >=", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdLessThan(String value) {
            addCriterion("return_people_id <", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdLessThanOrEqualTo(String value) {
            addCriterion("return_people_id <=", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdLike(String value) {
            addCriterion("return_people_id like", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotLike(String value) {
            addCriterion("return_people_id not like", value, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdIn(List<String> values) {
            addCriterion("return_people_id in", values, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotIn(List<String> values) {
            addCriterion("return_people_id not in", values, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdBetween(String value1, String value2) {
            addCriterion("return_people_id between", value1, value2, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnPeopleIdNotBetween(String value1, String value2) {
            addCriterion("return_people_id not between", value1, value2, "returnPeopleId");
            return (Criteria) this;
        }

        public Criteria andReturnTmIsNull() {
            addCriterion("return_tm is null");
            return (Criteria) this;
        }

        public Criteria andReturnTmIsNotNull() {
            addCriterion("return_tm is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTmEqualTo(Date value) {
            addCriterion("return_tm =", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmNotEqualTo(Date value) {
            addCriterion("return_tm <>", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmGreaterThan(Date value) {
            addCriterion("return_tm >", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmGreaterThanOrEqualTo(Date value) {
            addCriterion("return_tm >=", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmLessThan(Date value) {
            addCriterion("return_tm <", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmLessThanOrEqualTo(Date value) {
            addCriterion("return_tm <=", value, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmIn(List<Date> values) {
            addCriterion("return_tm in", values, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmNotIn(List<Date> values) {
            addCriterion("return_tm not in", values, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmBetween(Date value1, Date value2) {
            addCriterion("return_tm between", value1, value2, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTmNotBetween(Date value1, Date value2) {
            addCriterion("return_tm not between", value1, value2, "returnTm");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIsNull() {
            addCriterion("return_type is null");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIsNotNull() {
            addCriterion("return_type is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTypeEqualTo(String value) {
            addCriterion("return_type =", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotEqualTo(String value) {
            addCriterion("return_type <>", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeGreaterThan(String value) {
            addCriterion("return_type >", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeGreaterThanOrEqualTo(String value) {
            addCriterion("return_type >=", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLessThan(String value) {
            addCriterion("return_type <", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLessThanOrEqualTo(String value) {
            addCriterion("return_type <=", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLike(String value) {
            addCriterion("return_type like", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotLike(String value) {
            addCriterion("return_type not like", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIn(List<String> values) {
            addCriterion("return_type in", values, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotIn(List<String> values) {
            addCriterion("return_type not in", values, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeBetween(String value1, String value2) {
            addCriterion("return_type between", value1, value2, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotBetween(String value1, String value2) {
            addCriterion("return_type not between", value1, value2, "returnType");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdIsNull() {
            addCriterion("clue_pool_from_id is null");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdIsNotNull() {
            addCriterion("clue_pool_from_id is not null");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdEqualTo(String value) {
            addCriterion("clue_pool_from_id =", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotEqualTo(String value) {
            addCriterion("clue_pool_from_id <>", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdGreaterThan(String value) {
            addCriterion("clue_pool_from_id >", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_pool_from_id >=", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdLessThan(String value) {
            addCriterion("clue_pool_from_id <", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdLessThanOrEqualTo(String value) {
            addCriterion("clue_pool_from_id <=", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdLike(String value) {
            addCriterion("clue_pool_from_id like", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotLike(String value) {
            addCriterion("clue_pool_from_id not like", value, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdIn(List<String> values) {
            addCriterion("clue_pool_from_id in", values, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotIn(List<String> values) {
            addCriterion("clue_pool_from_id not in", values, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdBetween(String value1, String value2) {
            addCriterion("clue_pool_from_id between", value1, value2, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolFromIdNotBetween(String value1, String value2) {
            addCriterion("clue_pool_from_id not between", value1, value2, "cluePoolFromId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdIsNull() {
            addCriterion("clue_pool_to_id is null");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdIsNotNull() {
            addCriterion("clue_pool_to_id is not null");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdEqualTo(String value) {
            addCriterion("clue_pool_to_id =", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotEqualTo(String value) {
            addCriterion("clue_pool_to_id <>", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdGreaterThan(String value) {
            addCriterion("clue_pool_to_id >", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_pool_to_id >=", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdLessThan(String value) {
            addCriterion("clue_pool_to_id <", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdLessThanOrEqualTo(String value) {
            addCriterion("clue_pool_to_id <=", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdLike(String value) {
            addCriterion("clue_pool_to_id like", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotLike(String value) {
            addCriterion("clue_pool_to_id not like", value, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdIn(List<String> values) {
            addCriterion("clue_pool_to_id in", values, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotIn(List<String> values) {
            addCriterion("clue_pool_to_id not in", values, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdBetween(String value1, String value2) {
            addCriterion("clue_pool_to_id between", value1, value2, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andCluePoolToIdNotBetween(String value1, String value2) {
            addCriterion("clue_pool_to_id not between", value1, value2, "cluePoolToId");
            return (Criteria) this;
        }

        public Criteria andClueIdIsNull() {
            addCriterion("clue_id is null");
            return (Criteria) this;
        }

        public Criteria andClueIdIsNotNull() {
            addCriterion("clue_id is not null");
            return (Criteria) this;
        }

        public Criteria andClueIdEqualTo(String value) {
            addCriterion("clue_id =", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotEqualTo(String value) {
            addCriterion("clue_id <>", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdGreaterThan(String value) {
            addCriterion("clue_id >", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdGreaterThanOrEqualTo(String value) {
            addCriterion("clue_id >=", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdLessThan(String value) {
            addCriterion("clue_id <", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdLessThanOrEqualTo(String value) {
            addCriterion("clue_id <=", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdLike(String value) {
            addCriterion("clue_id like", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotLike(String value) {
            addCriterion("clue_id not like", value, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdIn(List<String> values) {
            addCriterion("clue_id in", values, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotIn(List<String> values) {
            addCriterion("clue_id not in", values, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdBetween(String value1, String value2) {
            addCriterion("clue_id between", value1, value2, "clueId");
            return (Criteria) this;
        }

        public Criteria andClueIdNotBetween(String value1, String value2) {
            addCriterion("clue_id not between", value1, value2, "clueId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}